package com.ruiyi.service;

import com.ruiyi.common.Result;
import com.ruiyi.dto.AccountDto;

import javax.servlet.http.HttpSession;

public interface AccountService {

    //登录
    Result findLogin(AccountDto accountDto, HttpSession session);

    //分页查询
    Result findAccountsByPage(Integer pageNum,Integer pageSize);

    //禁用和启用
    Result modifyAccountStatus(Integer status,Long id,HttpSession session);

    //添加账号
    Result saveAccount(String username,HttpSession session);

    //删除账号
    Result removeAccountById(Long id,HttpSession session);

    //重置密码
    Result modifyResetAccountPwd(Long id,HttpSession session);

    //修改密码
    Result modifyAccountPwd(String newPwd,HttpSession session);

    //修改头像
    Result modifyAccountImgUrl(String imgUrl,HttpSession session);
}
